package com.sarah.helloworld;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController  //@Controller+ @ResponseBody
@RequestMapping("/hello")
public class HelloWorldController {
    @RequestMapping("/world")
    public String sayhi(){
        return "hello world!";
    }

}
